<!doctype html>
<html lang="zh-cn">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>blur和contrast小球穿透效果</title>
</head>
<style>
  body {
    background: #000;
    filter: blur(5px) contrast(10);
    overflow: hidden;
  }

  .ball {
    position: absolute;
    left: 0;
    top: 40vh;
    height: 20vh;
    width: 20vh;
    border-radius: 50%;
    background: #fff;
    animation: move 10s infinite;

  }

  .g-wall {
    position: absolute;
    left: 20%;
    top: 30vh;
    height: 40vh;
    width: 15vh;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
  }

  .g-wall:nth-child(2) {
    left: 40%;
    border-radius: 50%;
  }

  .g-wall:nth-child(3) {
    left: 60%;
    border-radius: 50%;
  }

  .g-wall:nth-child(4) {
    left: 80%;
    border-radius: 50%;
  }

  @keyframes move {

    20% {
      transform: translate(20vw, 0);
      background: #ddd;
    }

    100% {
      transform: translate(100vw, 0);
      background: #ddd;
    }
  }
</style>
<body>
<div class="ball"></div>
<div class="g-wall"></div>
<div class="g-wall"></div>
<div class="g-wall"></div>
<div class="g-wall"></div>
</body>
</html>
